﻿$(document).ready(function () {
    layui.use('form', function () {
        form = layui.form;
    });
    //iframe自适应
    $(window).on('resize', function () {
        $.cookies.set("iframewidth", $(this).width());
        var wh = $(this).height() - 190;
        $("iframe").each(function () {
            $(this).contents().find("#iframe").height(wh);
        });
    }).resize();
});

$(window.parent.document).find("#" + GetQueryString("id")).remove();

function Loading() {
    if ($("#layer-table .center").length == 0) {
        $("#layer-table").html("<tr><td colspan='" + $("colgroup col").length + "' style='text-align:center;'>数据加载中...</td></tr>");
    }
};